/* models */
import { 
  ChatMessageTypeEnum, 
  ChatSendTypeEnum, 
  OpenAIMessageRoleEnum 
} from '@src/component/business/BizChatPanel/chat/model/enum'
/* types */
import { ChatBusinessSourceDocumentType } from '@src/component/business/BizChatPanel/chat/types'
import { GetRobotTextToReportResult } from '@src/modules/setting/gpt/types/chartT'

type OpenAIMessageItemType = {
  // 消息ID
  id: string;
  // 消息角色
  role: OpenAIMessageRoleEnum;
  // 消息内容
  content?: string;
  // 创建时间
  createTime?: number | string;
  // 业务源文档
  businessSourceDocuments?: ChatBusinessSourceDocumentType[];
  // 点赞点踩状态
  likeStatus?: number | null;
  // 是否是历史消息
  isHistory?: boolean;
  // 是否停止回答
  isStop?: boolean;
  isBI?: boolean;
  // 图表数据
  echartData?: GetRobotTextToReportResult[];
}

type ChatIMMessageItemType = {
  type: string
  // 消息的uuid
  id: string
  content: string
  likeStatus: number
  createTime: number
}

export {
  OpenAIMessageItemType,
  ChatIMMessageItemType
}
